package com.sunnada.demo.dao;

import com.sunnada.demo.bean.Dog;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface DogRepository extends MongoRepository<Dog,String> {

    List<Dog> findByName(String name);

    List<Dog> findByIdAndName(Object id,String name);
}
